package visitor;

import java.util.Iterator;


public abstract class Entry implements Acceptor {
	
	public abstract String getName();
	
	public abstract int getSize();
	
	public Entry add(Entry entry) throws FileTreadmentException {
		throw new FileTreadmentException();
	}
	
	public Iterator iterator() throws FileTreadmentException{
		throw new FileTreadmentException();
	}
	public String toString() {
		return getName() + "(" + getSize() + ")";
	}

}
